package com.ydc.ln.tutorial.j2se.ms;

/**
 * 数据转换
 * 
 * @author ydc
 * @date 下午12:20:28 2013-7-10
 */
public class DataTest {

    public static void main(String[] args) {
        new DataTest().test02();
    }
    
    public void test03() {
        int i = 0XA;
    }
    
    public void test02() {
        double d1 = 100.00;
        Double D1 = new Double(d1);
        int i1 = D1.intValue();
        int i2 = (int) d1;
        System.out.println("d1: " + d1);
        System.out.println("D1: " + D1);
        System.out.println("i1: " + i1);
        System.out.println("i2: " + i2);
        
    }
    
    public void test01 () {
        int t = "abc".length();
        
    }
}
